﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;
//
public class Example1 : MonoBehaviour
{

    public GameObject prefab;


    private IEnumerator Start()
    {
        if (prefab != null)
        {
            yield return new WaitForSeconds(0.5f);
            GameObject o = Instantiate(prefab);
            yield return new WaitForSeconds(0.5f);
            GameObject.Destroy(o);
        }
       
    }

}
